package scaladuct;

import util.GenericAnalysisUtils;

import java.lang.reflect.Type;

/**
 * Created by IntelliJ IDEA.
 * User: zslajchrt
 * Date: 31.3.11
 * Time: 20:58
 * To change this template use File | Settings | File Templates.
 */
public class DefaultTypeInfo implements TypeInfo {
    private static final long serialVersionUID = -3762222212167378291L;

    private final Type t;

    public DefaultTypeInfo(Type t) {
        this.t = t;
    }

    @Override
    public Type getType() {
        return t;
    }

    @Override
    public Class<?> getRawClass() {
        return GenericAnalysisUtils.getRawClassFromType(t);
    }
}
